package com.rao.gmall.feign.product;

import com.rao.gmall.feign.product.fallback.CategoryFeignClientFallback;
import com.rao.gmall.model.vo.IndexCategoryVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author nzmxfan
 * @create 2021-08-12-23:09
 */
@RequestMapping("/admin/product")
@FeignClient(value = "service-product",fallback = CategoryFeignClientFallback.class)
public interface CategoryFeignClient {

    @GetMapping("/getAllCategorys")
    List<IndexCategoryVo> getAllCategorysForIndexHtml();
}
